<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>阅美时光</title>
	<style type="text/css">
		img{max-width: 100%; height: auto;}
		body { font-family: Tahoma; font-size: 20pt }
		.leftmenu {
			width:101%;
			height:100%;
			text-align:center;
		}

		.leftmenu a:active,
		.leftmenu a:visited,
		.leftmenu a:link {
			display: block;
			text-decoration: none;
			margin: 6px 10px 6px 0px;
			padding: 2px 6px 2px 6px;
			color: #00527f;
			background-color: #d9e8f3;
			border: 1px solid #004266;
		}

		.leftmenu a:hover {
			color: red;
			background-color: #8cbbda;
		}
	</style>
</head>
<body>
<div class="leftmenu">
	<br><br><br><br><br><br><br>
	<center>
		<a href="http://123.56.188.213/yuemeishiguang.apk">请点击下载阅美时光</a>
	</center>
</div>
<script type="text/javascript">
	function is_weixin() {
		var ua = navigator.userAgent.toLowerCase();
		if (ua.match(/MicroMessenger/i) == "micromessenger") {
			return true;
		} else {
			return false;
		}
	}
	var isWeixin = is_weixin();
	var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
	function loadHtml(){
		var div = document.createElement('div');
		div.id = 'weixin-tip';
		div.innerHTML = '<p><img src="live_weixin.png" alt="微信打开"/></p>';
		document.body.appendChild(div);
	}
		
	function loadStyleText(cssText) {
		var style = document.createElement('style');
		style.rel = 'stylesheet';
		style.type = 'text/css';
		try {
			style.appendChild(document.createTextNode(cssText));
		} catch (e) {
			style.styleSheet.cssText = cssText; //ie9以下
		}
		var head=document.getElementsByTagName("head")[0]; //head标签之间加上style样式
		head.appendChild(style);
	}
	var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
	if(isWeixin){
		loadHtml();
		loadStyleText(cssText);
	}
</script>
</body>
</html>